package edu.ncsu.csc.camera.com;

/**
 * An abstract class defining methods for sending CMUCamera packets over communication channels
 * A CMUCameraPacket subclass should also include a constructor that takes a byte array as its parameter
 * (the same byte array format that its toByteArray method provides).
 * 
 * @author Douglas McClusky
 */
public abstract class CMUCameraPacket {
    public static final byte F_PACKET = 0;
    public static final byte H_PACKET = 1;
    public static final byte S_PACKET = 2;
    public static final byte T_PACKET = 3;

    protected byte type;

    public abstract byte[] toByteArray();
}
